
package com.hc.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.hc.dao.IResourcesPicDao;
import com.hc.domain.ResourcesPic;
import com.hc.service.IResourcesPicService;
@Service("resourcesPicService")
public class ResourcesPicServiceImpl implements IResourcesPicService {
	@Resource
	private IResourcesPicDao resourcesPicDao;

	@Override
	public void save(ResourcesPic resPic) {
		resourcesPicDao.saveResource(resPic);
	}

	@Override
	public List<ResourcesPic> findPicsByTypeDesc(String type) {
		return resourcesPicDao.findPicsByTypeDesc(type);
		
	}

	@Override
	public ResourcesPic getPicById(int resourceId) {
		return resourcesPicDao.getPicById(resourceId);
		
	}

	@Override
	public void delete(ResourcesPic pic) {
		resourcesPicDao.deletePic(pic);
	}

	@Override
	public void update(ResourcesPic rp) {
		resourcesPicDao.updatePic(rp);
	}

}

